<template>
    <div>
        <div @click="show = !show">
            <slot name="title">主标题</slot>
        </div>
        <div v-show="show">
            <slot name="child">子面板</slot>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            show:false
        }
    }
}
</script>
